﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SusyGame_Model
{
    public class Weapon
    {
        //Atributos
        private String name;
        private int damage;
        private int speed;
        private int type;

        //Propiedades
        public int Type
        {
            get { return type; }
            set { type = value; }
        }

        public String Name
        {
            get { return name; }
            set { name = value; }
        }
        
        public int Damage
        {
            get { return damage; }
            set { damage = value; }
        }   

        public int Speed
        {
            get { return speed; }
            set { speed = value; }
        }

        //Constructores
        public Weapon()
        {
        }

        public Weapon(int type)
        {
            if (type == 1)
            {
                //Le asignamos los atributos necesarios a cada arma
                this.Name = "Arma 1";
                this.Damage = 25;
                this.Speed = 4;
            }
            else
            {
                if (type == 2)
                {
                    this.Name = "Arma 2";
                    this.Damage = 50;
                    this.Speed = 3;
                }
                else
                {
                    if (type == 3)
                    {
                        this.Name = "Arma 3";
                        this.Damage = 75;
                        this.Speed = 2;
                    }
                    else
                    {
                        if (type == 4)
                        {
                            this.Name = "Arma 4";
                            this.Damage = 100;
                            this.Speed = 1;
                        }
                    }
                }
            }
        }
    }
}
